package com.rk.pethome.basic.query;

import lombok.Data;

@Data
public class BaseQuery {
    //当前页
    private Integer currentPage;
    //每页条数
    private Integer pageSize;

    //查询起始位置
    public Integer getBegin(){
        return (this.currentPage-1)*this.pageSize;
    }

}
